<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:50:"D:\www\tp7./application/index\view\pages\news.html";i:1504796248;s:53:"D:\www\tp7./application/index\view\public\header.html";i:1516588410;s:52:"D:\www\tp7./application/index\view\public\right.html";i:1532680099;s:53:"D:\www\tp7./application/index\view\public\footer.html";i:1514170218;}*/ ?>
<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title><?php echo seotitle(); ?></title>
    <meta name="keywords" content="<?php echo seokeywords(); ?>" />
    <meta name="description" content="<?php echo seodesc(); ?>" />
    <link rel="stylesheet" type="text/css" href="__INDEX__/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="__INDEX__/css/normalize.css">
    <link rel="stylesheet" type="text/css" href="__INDEX__/css/nprogress.css">
    <link rel="stylesheet" type="text/css" href="__INDEX__/css/bluestyle.css">
    <link rel="stylesheet" type="text/css" href="__INDEX__/css/font-awesome.min.css">
    <!-- <link rel="stylesheet" href="__INDEX__/css/supersized.css"> -->

    <link rel="shortcut icon" href="__INDEX__/images/favicon.ico">
    <script src="__INDEX__/js/jquery-2.1.4.min.js"></script>
    <script src="__INDEX__/js/nprogress.js"></script>
    <script src="__INDEX__/js/jquery.lazyload.min.js"></script>
    <!-- <script src="__INDEX__/js/supersized.3.2.7.min.js"></script> -->
    <!-- <script src="__INDEX__/js/supersized-init.js"></script> -->
    <!-- 万年历 -->
    <script type="text/javascript" src="__INDEX__/js/main.js"></script>


    <style type="text/css">
        /*title样式*/
        div#tooltip {position:absolute; z-index:1000;width:auto!important;background:rgba(0, 210, 210,1); text-align:left; padding:5px 10px;border-radius:5px;
            background:rgba(0, 210, 210,1);
        }
        div#tooltip p {color:#fff;font-size:12px;}
        div#tooltip p:after{
            content:''; 
            width: 0;
            height: 0;
            position:absolute;
            left:10%;
            top:-8px;
            border-left: 8px solid transparent;
            border-right: 8px solid transparent;
            border-bottom: 8px solid rgba(0, 210, 210,1);
        }

        /*section*/
        .mysection{width:100%;}
    </style>
    <link rel="stylesheet" href="__INDEX__/css/flexslider.css"/>
    <!--JS-->
    <script src="__INDEX__/js/jquery.flexslider-min.js"></script>
    <script src="__INDEX__/js/tooltip.js"></script>
    <script type="text/javascript">
        $(function(){
            var swiper = new Swiper('.swiper-container', {
                nextButton: '.swiper-button-next',
                prevButton: '.swiper-button-prev',
                pagination: '.swiper-pagination',
                paginationType: 'fraction',
                centeredSlides: true,
                loop: true,//循环
                autoplay: 7500,//自动播放时间
                autoHeight: true //自动高度
            });
        });
    </script> 
    <script>
        var Num; //Num计算出日期位置
        for(i=0;i<6;i++) {
            document.write('<table id="cal-content" style="display:none"><tr>');
            for(j=0;j<7;j++) {
                Num = i*7+j;
                document.write('<td id="SD' + Num +'" </td>');
            }
            //农历
            for(j=0;j<7;j++) {
                Num = i*7+j;
                document.write('<td id="LD' + Num +'"" > </td>')
            }
            document.write('</tr></table');
        }
    </script> 
</head>
<body class="user-select"  onload=initial(); >
<?php
$uarowser=$_SERVER['HTTP_USER_AGENT'];
if(strstr($uarowser, 'MSIE 6') || strstr($uarowser, 'MSIE 7') || strstr($uarowser, 'MSIE 8') || strstr($uarowser, 'MSIE 9')){
    echo '
		<div id="ie6-alertBox">
		    <div id="ie6-infoBar">
		        <h1>对不起，本站不支持IE9及其以下浏览器！</h1>
		        <p>站长表示实在是兼容不了低版本的IE浏览器，请升级你的IE浏览器。</p>
		        <p>推荐升级至IE10或者试试火狐浏览器和谷歌浏览器，如果你对IE是真爱......那么我也没法。</p>
		    </div>
		</div>
		<div id="ie6-overlay"></div>
		<style type="text/css">
		    #ie6-alertBox{width: 666px;margin-top: 160px;margin-right: auto;margin-bottom: 0px;margin-left: auto;padding: 20px;border: 1px solid #CCCCCC;text-align: center;font-family: "宋体", Verdana, sans-serif; line-height: 30px;} 
		    #ie6-infoBar h1{font-size: 22px;color: #ff0000;line-height: 60px;}
		</style>';
exit;//全面停止支持
}
?>
    <header class="header">
        <nav class="navbar navbar-default" id="navbar">
            <div class="container">
                <div class="header-topbar hidden-xs link-border">
                    <div class="site-nav topmenu">
                        <div id="date_content" style="float: left;"></div>
                        <span id="clock" style="float: left; margin-left: 10px;"></span>
                    </div>
                  <a href="javascript:;" class="register" draggable="false">勤记录 懂分享</a></div>
                  <div class="navbar-header">
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#header-navbar" aria-expanded="false">
                        <span class="sr-only"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <h1 class="logo hvr-bounce-in">
                        <a href="http://www.esslay.com/" title="樱桃博客网站">
                            <figure></figure>
                        </a>
                    </h1>
                </div>
                <div class="collapse navbar-collapse" id="header-navbar">
                    <!-- <form class="navbar-form visible-xs" action="/Search" method="post">
                        <div class="input-group">
                            <input type="text" name="keyword" class="form-control" placeholder="请输入关键字" maxlength="20" autocomplete="off">
                            <span class="input-group-btn">
                                <button class="btn btn-default btn-search" name="search" type="submit">搜索</button></span>
                        </div>
                    </form> -->
                    <ul class="nav navbar-nav navbar-right">
                       <li>
                        <a href="<?php echo url('index/index/index'); ?>">首页</a>
                    </li>
                    <?php if(is_array($_nav) || $_nav instanceof \think\Collection || $_nav instanceof \think\Paginator): $i = 0; $__LIST__ = $_nav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$nav): $mod = ($i % 2 );++$i;?>
                    <li>
                        <a href="<?php echo navurl($nav['sf'],$nav['id']); ?>"><?php echo $nav['cate']; ?></a>
                    </li>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </div>
        </div>
    </nav>
</header>

    <section class="container">
        <div class="content-wrap">
            <div class="content">
                <?php if(is_array($article) || $article instanceof \think\Collection || $article instanceof \think\Paginator): $i = 0; $__LIST__ = $article;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$article): $mod = ($i % 2 );++$i;?>
                <article class="excerpt excerpt-1">
                    <a class="focus" href="<?php echo url('index/article/show',['cateid'=>$article['cateid'],'id'=>$article['id']]); ?>" title="<?php echo $article['title']; ?>" target="_blank">
                        <img class="thumb" data-original="<?php if($article['thumb']==null): ?>__INDEX__/images/timg.jpg <?php else: ?><?php echo $article['thumb']; endif; ?>" src="<?php if($article['thumb']==null): ?>__INDEX__/images/timg.jpg <?php else: ?><?php echo $article['thumb']; endif; ?>" alt="<?php echo $article['keywords']; ?>" style="display: inline;"></a>
                    <header>
                        <?php echo taga($article['tag']); ?>
                        <h2>
                            <a href="<?php echo url('index/article/show',['cateid'=>$article['cateid'],'id'=>$article['id']]); ?>" title="<?php echo $article['title']; ?>" target="_blank"><?php echo $article['title']; ?></a></h2>
                    </header>
                    <p class="meta">
                        <time class="time"><i class="glyphicon glyphicon-time"></i><?php echo date('Y-m-d',$article['time']); ?></time>
                        <!-- <span class="views"><i class="glyphicon glyphicon-eye-open"></i>217</span> -->
                    </p>
                    <p class="note"><?php echo $article['desc']; ?></p>
                </article>
                <?php endforeach; endif; else: echo "" ;endif; ?>
                <tr>
                    <?php echo $page; ?>
                </tr>
                
            </div>
        </div>
        <aside class="sidebar">
    <div class="fixed">
        <div class="widget widget-tabs">
            <ul class="nav nav-tabs" role="tablist">
                <li role="presentation" class="active">
                    <a href="#notice" aria-controls="notice" role="tab" data-toggle="tab">统计信息</a></li>
                <li role="presentation">
                    <a href="#contact" aria-controls="contact" role="tab" data-toggle="tab">联系站长</a></li>
            </ul>
            <div class="tab-content">
                <div role="tabpanel" class="tab-pane contact active" id="notice">
                    <h2>日志总数: <?php echo $article_count; ?>篇</h2>
                    <h2>网站运行:
                        <span id="sitetime">88天</span></h2>
                </div>
                <div role="tabpanel" class="tab-pane contact" id="contact">
                    <h2>QQ:
                        <a href="http://wpa.qq.com/msgrd?v=3&amp;uin=<?php echo $_seo['qq']; ?>&amp;site=qq&amp;menu=yes" target="_blank" rel="nofollow" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="QQ:<?php echo $_seo['qq']; ?>"><?php echo $_seo['qq']; ?></a></h2>
                    <h2>Email:
                        <a href="mailto:<?php echo $_seo['email']; ?>" target="_blank" data-toggle="tooltip" rel="nofollow" data-placement="bottom" title="" data-original-title="Email:<?php echo $_seo['email']; ?>"><?php echo $_seo['email']; ?></a></h2>
                </div>
            </div>
        </div>
        <div class="widget widget_hot">
            <div class="weather">
                <?php echo $_seo['weather']; ?>
            </div>
        </div>
        <div class="widget widget_search">
            <form class="navbar-form" action="<?php echo url('index/search/lst'); ?>" method="POST">
                <div class="input-group">
                    <input type="text" name="keyword" class="form-control" size="35" placeholder="请输入关键字" maxlength="15" autocomplete="off">
                    <span class="input-group-btn">
                        <button class="btn btn-default btn-search" name="search" type="submit">搜索</button></span>
                </div>
            </form>
        </div>
        <div class="widget widget_sentence">
            <h3>标签云</h3>
            <div class="widget-sentence-content">
                <ul class="plinks ptags">
                    <?php if(is_array($tag) || $tag instanceof \think\Collection || $tag instanceof \think\Paginator): $k = 0; $__LIST__ = $tag;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$tag): $mod = ($k % 2 );++$k;?>
                    <li>
                        <a href="<?php echo url('index/search/lst',['tagtitle'=>$tag]); ?>" title="<?php echo $tag; ?>" draggable="false"><?php echo $tag; ?>
                        <span class="badge"><?php echo tagnum($tag); ?></span></a>
                    </li>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </div>
        </div>
    </div>
    <div class="widget widget_hot">
        <h3>最新文章</h3>
        <ul>
            <?php if(is_array($postion_new) || $postion_new instanceof \think\Collection || $postion_new instanceof \think\Paginator): $i = 0; $__LIST__ = $postion_new;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$postion_new): $mod = ($i % 2 );++$i;?>
            <li>
                <a title="<?php echo $postion_new['title']; ?>" href="<?php echo url('index/article/show',['cateid'=>$postion_new['cateid'],'id'=>$postion_new['id']]); ?>">
                    <span class="thumbnail">
                        <img class="thumb" data-original="<?php echo $postion_new['thumb']; ?>" src="<?php echo $postion_new['thumb']; ?>" alt="<?php echo $postion_new['keywords']; ?>" style="display: block;"></span>
                    <span class="text"><?php echo $postion_new['title']; ?></span>
                    <span class="muted">
                        <i class="glyphicon glyphicon-time"></i><?php echo date('Y-m-d',$postion_new['time']); ?></span>
                    <!-- <span class="muted">
                        <i class="glyphicon glyphicon-eye-open"></i>88</span> -->
                </a>
            </li>
            <?php endforeach; endif; else: echo "" ;endif; ?>
        </ul>
    </div>
    <div class="widget widget_sentence">
        <h3>友情链接</h3>
        <div class="widget-sentence-link">
            <a href="#" title="友情链接" target="_blank">友情链接</a>&nbsp;&nbsp;&nbsp;
        </div>
    </div>
</aside>
    </section>

    <footer class="footer">
        <div class="container">
            <?php echo $_seo['copy']; ?>
        </div>
        <div id="gotop">
            <a class="gotop"></a>
        </div>
    </footer>
    <div id="rightClickMenu">
        <ul class="list-group rightClickMenuList">
            <li class="list-group-item disabled">欢迎访问樱桃博客</li>
            <li class="list-group-item disabled"><span>可复制：</span>代码框内的文字。</li>
            <li class="list-group-item disabled"><span>方法：</span>Ctrl+C。</li>
        </ul>
    </div>
    <script src="__INDEX__/js/bootstrap.min.js"></script>
    <script src="__INDEX__/js/scripts.js"></script>
    <script type="text/javascript">
        function siteTime() {
            window.setTimeout("siteTime()", 10000);
            BirthDay = new Date("07/01/2017");
            today = new Date();
            //总时间
            timeold = (today.getTime() - BirthDay.getTime());
            sectimeold = timeold / 1000
            secondsold = Math.floor(sectimeold); 
            msPerDay = 24 * 60 * 60 * 1000
            e_daysold = timeold / msPerDay
            daysold = Math.floor(e_daysold);
            sitetime.innerHTML =  daysold + "天";
        }
        siteTime();
        /*function siteTime() {
            window.setTimeout("siteTime()", 1000);
            var seconds = 1000;
            var minutes = seconds * 60;
            var hours = minutes * 60;
            var days = hours * 24;

            var today = new Date();
            var todayYear = today.getFullYear();
            var todayMonth = today.getMonth();
            var todayDate = today.getDate();

            var t1 = Date.UTC(2017,7,1);
            var t2 = Date.UTC(todayYear, todayMonth, todayDate);
            var diff = t2 - t1;

            var diffDays = Math.floor(diff / days);
            document.getElementById("sitetime").innerHTML = diffDays + " 天 ";
        }
        siteTime();*/
    </script>
    <script>
        (function(){
            var bp = document.createElement('script');
            var curProtocol = window.location.protocol.split(':')[0];
            if (curProtocol === 'https'){
                bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
            }
            else{
                bp.src = 'http://push.zhanzhang.baidu.com/push.js';
            }
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(bp, s);
        })();
    </script>
</body>

</html>